package com.li.mapper;

import com.li.pojo.dto.ContractPageDto;
import com.li.pojo.po.Contract;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 合同 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-04-14
 */
public interface ContractMapper extends BaseMapper<Contract> {

    //分页查询
    List<Contract> findByPage(ContractPageDto pageDto);

    @Select("select * from sys_contract where id=#{id}")
    Contract findById(Integer id);

    @Select("select * from sys_contract")
    List<Contract> findAll();

}
